package com.situ.spring.service.impl;

import com.situ.spring.dao.IStudentDao;
import com.situ.spring.service.IStudentService;

public class StudentServiceImpl implements IStudentService {
    private IStudentDao studentDao;

    public void setStudentDao(IStudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public void selectAll() {
        //开启事物
        System.out.println("StudentServiceImpl.selectAll");
        //studentDao.selectAll();
        //关闭事物
    }

    @Override
    public void deleteById(Integer id) {
        //开启事物
        System.out.println("StudentServiceImpl.deleteById");
        //关闭事物
    }
}
